package com.app.service;

import com.app.model.TestsModel;
import com.app.util.Result;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface TestsService {

    TestsModel getTestById(int id);
    TestsModel selectTestById(int id);

    Page<TestsModel> getPageTestsList(Integer page, Integer limit,String name,Integer modelType,String breakdowns,List<Integer> idList ,Integer year,Integer departmentId);//实验管理分页查询

//    List<RoleModel> getTestsListLikeName(String roleName);//根据角色名字筛选

    void update(TestsModel model);

    void insert(TestsModel model);

    void delete(int id);

    Integer testCount(List<Integer> idsList);

    List<TestsModel> getStatisticsByIds(List<Integer> idList,List<Integer> yearList,String key);//首页柱状图统计
    List<TestsModel> getTestByIds(List<Integer> idList,String key, Integer year);//根据型号ID取实验

    List<TestsModel> getTestByType(Integer modelType);//根据型号ID取实验


    List<TestsModel> getPlantByIds(List<Integer> appIdList);

    Result<Object> deleteBatchByIds(String ids);
}
